package com.my.test.user.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.test.user.dao.UserInfoMapper;
import com.my.test.user.entiy.UserInfo;

@Service
public class UserInfoServiceImpl implements UserInfoService {

	@Autowired
	private UserInfoMapper userInfoMapper;
	@Override
	public Integer insert(UserInfo u) {
		return userInfoMapper.insert(u);
	}

	@Override
	public void update(UserInfo u) {
		// TODO Auto-generated method stub

	}

	@Override
	public void delete(UserInfo u) {
		// TODO Auto-generated method stub

	}

	@Override
	public UserInfo getUserById(Integer id) {
		return userInfoMapper.getUserById(id);
	}

	@Override
	public UserInfo getUserByName(String userName) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<UserInfo> getUsers(UserInfo u) {
		return userInfoMapper.getUsers(u);
	}

}
